package net.idugic.dto;

import java.io.Serializable;

public class QueryAnswerDTO implements Serializable {

	private static final long serialVersionUID = -5787758064874735904L;

	private Integer id = null;

	private Integer query = null;

	private String sender_account = null;

	private Integer answer_option = null;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getQuery() {
		return query;
	}

	public void setQuery(Integer query) {
		this.query = query;
	}

	public String getSender_account() {
		return sender_account;
	}

	public void setSender_account(String sender_account) {
		this.sender_account = sender_account;
	}

	public Integer getAnswer_option() {
		return answer_option;
	}

	public void setAnswer_option(Integer answer_option) {
		this.answer_option = answer_option;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final QueryAnswerDTO other = (QueryAnswerDTO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}
